<template>
	<div class="app-container">
		<BaseTable :columns="columns" :dataList="dataList"> </BaseTable>
		<pagination :total="total" v-model:page="queryData.pageNum" v-model:limit="queryData.pageSize" @pagination="search" />
	</div>
</template>
<script setup>
import { reactive } from 'vue'
import BaseTable from '@/components/BaseTable'
import { getLogRecords } from '@/api/project/project'
const { proxy } = getCurrentInstance()
const { procure_status } = proxy.useDict('procure_status')
import { useRoute } from 'vue-router'
const route = useRoute()
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
const queryData = reactive({
	pageNum: 1,
	pageSize: 100,
	procureName: undefined,
	procureStatus: undefined
})
const columns = ref([
	{ key: 2, width: '260', label: `操作时间`, prop: 'createTime', type: 'dateTime', visible: true },
	{ key: 6, width: '200', label: `类型`, prop: 'recordCategoryString', type: 'text', visible: true },
	{ key: 3, width: '200', label: `操作状态`, prop: 'recordStatusString', type: 'text', visible: true },
	{ key: 5, width: '200', label: `操作人`, prop: 'recordUserCode', type: 'text', visible: true },
	{ key: 7, label: `内容`, prop: 'recordNote', type: 'text', visible: true }
])
const total = ref(0)
const dataList = ref([])
const search = () => {
	getLogRecords({ otherId: route.query.id, recordCategory: route.query.type }).then((res) => {
		dataList.value = res.rows
		total.value = res.total
	})
}
search()
</script>
<style lang="scss" scoped></style>
